home *** CD-ROM | disk | FTP | other *** search
/ Extra Heft 12 / Extra Heft12.bin / c64s / c64s.doc < prev    next >
Text File  |  1994-09-04  |  42KB  |  1,131 lines

  1. --------------------------------------------------------------------------------
  2.  
  3. Note:
  4.  
  5. This document relates to the actual REGISTERED version of C64S.
  6. Missing files, non-supported functions, etc. are DEMO version
  7. limitations ONLY. Please read REGISTER.DOC for information on
  8. registering.
  9.  
  10. --------------------------------------------------------------------------------
  11.                               
  12.                               
  13.                               
  14.             C64S - Commodore 64 Software Emulator
  15.            Registered version 1.0F, September 1994
  16.                  (C) 1991-1994 Miha Peternel
  17.                               
  18.                               
  19.                               
  20.                               
  21.                      C64S USER'S MANUAL
  22.                               
  23.  
  24.                               
  25.  This document is (C) 1994 by Miha Peternel. No part of this
  26.  document may be reprinted without written permission of the
  27.                            author.
  28.  
  29.                     ____________________
  30.                        1. INTRODUCTION
  31.                               
  32.  
  33. Welcome to a software emulator of the good old fat C64. It
  34. will allow you to run most of the original C64 software on
  35. your PC.
  36.  
  37. The C64S emulator and accompanying utilities are copyrighted
  38. (C) 1994 by Miha Peternel and may not be copied, sold, hired
  39. or distributed in any way without written permission of the
  40. author. C64 and 1541 ROM code is copyrighted (C) by Commodore
  41. Business Machines.
  42.  
  43. Minimum requirements:
  44. - 386 or better
  45. - 640K RAM (500K low ram free)
  46. - VGA display (register compatible)
  47. - DOS 3.0 or newer
  48.  
  49. Optional:
  50. - a soundcard:
  51.   Gravis UltraSound (best for sound output)
  52.   Sound Blaster (all versions or DSP compatible soundcards)
  53.   Pro Audio Spectrum (8 or 16 bit PCM)
  54.   Covox or compatible DAC (digital to analog converter)
  55. - PC joystick (1 or 2)
  56. - tape/floppy interface
  57.  
  58. You need at least a cached 386DX40 with a fast VGA for real
  59. time emulation. A soundcard is recommended, though the sound
  60. can also be played through PC speaker (at rather low
  61. quality).
  62.  
  63. The following files are essential for proper emulator
  64. operation:
  65. - C64S.EXE          C64 Software Emulator (for 386 and better)
  66. - SYSTEM.EXE        C64S system emulation
  67. - CONFIG.EXE        C64S hardware configuration utility
  68. - ROMCODE.C64       C64 and 1541 ROM code
  69. - SIDWAVES.C64      SID waveforms
  70.  
  71. The following utilities make the life easier:
  72. - COM1541.EXE       Transfers 1541 disk contents to .D64 files
  73. - TAPEIO.EXE        Turbo Tape loader for PC
  74. - MAKETAPE.EXE      Creates .T64 files and imports .PRG files
  75. - FIXTAPE.EXE       Fixes bad CONV64 created .T64 files
  76.  
  77. Documentation:
  78. - C64S.DOC          A guide to the emulator you are reading
  79. - LPT1541.DOC       1541 connection scheme
  80. - LPTTAPE.DOC       Tape recorder connection scheme
  81. - T64.DOC           .T64 file structure
  82. - D64.DOC           .D64 file structure
  83.  
  84.                    ______________________
  85.                       2. CONFIGURATION
  86.                               
  87.  
  88. C64S comes with an automated configuration program, which
  89. lets you easily configure emulator options to best suit your
  90. hardware. To start the configuration program change to C64S
  91. directory and type on the command line:
  92.  
  93.      CONFIG
  94.  
  95. Or in case of any troubles:
  96.  
  97.      CONFIG -s
  98.  
  99. The configuration program will autodetect the presence of
  100. soundcards, analogue joysticks and parallel (LPT) ports.
  101. Some users may have many add-on cards installed in the
  102. computer in which case the autodetection procedures may fail
  103. or even crash the computer. If you notice any such trouble
  104. try running the configuration program with -s switch as
  105. suggested above. This switch will tell the program to skip
  106. autodetection procedure.
  107.  
  108. The configuration program will then try to read current
  109. saved settings. If no settings are saved, it will use
  110. default settings. Also, you can always use -d switch to use
  111. default settings instead of the saved settings.
  112.  
  113. In the configuration screen, you may use Up and Down arrows
  114. to move around, Left, Right and Enter keys to change the
  115. highlighted setting.
  116.  
  117.  
  118. Configuration overview:
  119.  
  120. - Sound Output
  121. C64S can autodetect Gravis UltraSound, Sound Blaster (or
  122. true DSP compatible) and Pro Audio Spectrum soundcards. If
  123. the sound output is set to Autodetect, the priority of
  124. selecting sound output is: GUS, PAS, SB, PC speaker. If the
  125. configuration program fails to detect your soundcard's port,
  126. try setting it manually in the configuration screen. Note
  127. that C64S can autodetect and use PAS soundcard only if
  128. MVSOUND.SYS device driver is loaded (this is done by the PAS
  129. installation program).
  130.  
  131. - Analogue joysticks
  132. This option must be set to Autodetect to use analogue PC
  133. joysticks. C64S provides two methods of scanning joysticks.
  134. Compensating mode takes less CPU time but might fail with
  135. some joysticks or newer "speed compensating" game ports.
  136. Compatible mode will work with all joysticks. You are
  137. advised to try Compensating mode first. If it fails, change
  138. to Compatible mode.
  139.  
  140. - Video mode
  141. C64S works in two VGA modes. Default Extended mode is VGA
  142. 368*240 pixels, 16 colours. Compatible mode is provided in
  143. case you are running the emulator on a laptop with LCD
  144. display or if your VGA system cannot display Extended mode.
  145. Compatible mode is standard VGA 320*200 pixels, 16 colours.
  146.  
  147. - External devices
  148. C64S supports real-time communication with external CBM
  149. devices connected to PC's LPT port. Setting Use external
  150. devices must be set to Autodetect or to Yes to use any
  151. external device. If you don't use any external devices set
  152. Use external devices to No to speed up emulator loading. The
  153. same goes for External 1541 drive and External CBM printer
  154. settings. C64S can autodetect printer as device 4, and 1541
  155. or compatible disk drives as devices 8-11. The lowest device
  156. number not assigned to external 1541 drive is assigned to
  157. emulated 1541 drive.
  158.  
  159. - PC printer port
  160. This port setting is used for direct PC printer
  161. communication. Default setting is LPT1, but you may need to
  162. change this setting if you have more than one LPT port. If
  163. you try to assign a non-existing LPT port, the selection
  164. will be marked as not available (N/A).
  165.  
  166. - Tape port & CBM IEEE port
  167. These port settings are used by TAPEIO and COM1541
  168. utilities. CBM IEEE port is also used for direct 1541 and
  169. CBM printer communication. If you have only one available
  170. LPT port it will be autodetected. If you have many you are
  171. recommended to use LPT2 or LPT3 since LPT1 is usually a
  172. printer port. In case of a non-existing LPT port assignment
  173. the selection will be marked as not available (N/A).
  174.  
  175. IMPORTANT: If you run C64S in multitasking environment
  176. (Windows, OS/2), you are strongly advised to disable sound
  177. output and set joystick scanning mode to Compatible. This
  178. will prevent general slow down and other difficulties in
  179. such environments, but still won't make possible to use
  180. external CBM devices. If you have a GUS, you may have sound
  181. enabled, but it may conflict with soundcard drivers used by
  182. operating system. Exit environment and run C64S from plain
  183. DOS to enjoy full emulation performance.
  184.  
  185. When you have finished with configuration, press End and
  186. Return to save settings and exit. You may always press Esc
  187. to abort configuration without saving.
  188.  
  189.                      ___________________
  190.                        3. FIRST STEPS
  191.                               
  192.  
  193. After the emulator has been installed and configured we come
  194. to a question how to load and run C64 programs. This is a
  195. step by step description to help beginners use the emulator.
  196.  
  197. Fast introduction:
  198.  
  199. 1. If you are running the emulator for the first time, and
  200. you have not run the CONFIG utility yet, please refer to the
  201. previous chapter for the information about hardware
  202. configuration.
  203.  
  204. 2. Run the emulator by changing to the emulator's directory
  205. (if necessary) and typing on the DOS command line:
  206.  
  207.      C64S
  208.  
  209.   The well-known blue C64 screen appears.
  210.  
  211. 3. Press F9 to get to the tape file screen. Select a tape
  212. image file using arrow keys and press Enter. The selected
  213. tape is now "open" and you will enter tape directory screen
  214. with the list of files stored in the selected tape image
  215. file. Select a file and press Enter. Now you will be
  216. returned to C64 screen.
  217.  
  218. 4. Press SHIFT+TAB (which equals SHIFT+RUN/STOP), which will
  219. load a tape program and run it automatically.
  220.  
  221. 5. Press F10 to enter joystick option screen. Configure the
  222. joystick port emulation as you wish. You can even change the
  223. keys to emulate joysticks. IMPORTANT: If you are using
  224. analogue PC joystick and you are running the emulator for
  225. the first time, press `R' and follow the steps to
  226. recalibrate the joystick.
  227.  
  228. 6. After you have finished configuring joystick settings,
  229. press ESC to get back to C64 screen and enjoy the nostalgia.
  230. :)
  231.  
  232. 7. You can always press F10 to enter option screen, where
  233. you can adjust numerous emulation settings to improve the
  234. behaviour of the program you are running.
  235.  
  236. 8. When bored press CTRL-ALT-DEL or CTRL-ALT-INS to reset
  237. the emulator and proceed from step 3.
  238.  
  239. 9. CTRL-BREAK gets you back to DOS prompt.
  240.  
  241. Please read the following chapters for more information on
  242. emulator behaviour.
  243.                       ________________
  244.                         4. IN ACTION
  245.                               
  246.  
  247. The emulator emulates all the components of C64 needed to
  248. make the programs run correctly, display genuine graphics,
  249. synthesize sound, and emulate I/O operations.
  250.  
  251. The keyboard layout is original C64 with some exceptions due
  252. to a different PC layout.
  253.  
  254. Some special emulator features make the work with the
  255. emulator easier. The tapes and disks to be used with the
  256. emulator are stored in a special format (referred to as
  257. image files) on the hard disk. You can select the tape
  258. position or a disk using emulator desktop. Emulation
  259. settings can be changed either with the CONFIG program
  260. (hardware settings) or in the option screen (other
  261. settings).
  262.  
  263. The following keys have special meaning:
  264. - F9 enters emulator desktop
  265. - F10 enters joystick option screen
  266. - F11 pressed prevents screen updates
  267.   Great for uninterrupted sound reproduction !!!
  268. - ESC is an exit/cancel key
  269. - CTRL+BREAK exits the emulator
  270. - CTRL+ALT+DEL or CTRL+ALT+BackSpace emulate reset
  271. - CTRL+ALT+INS causes brutal reset (for reset-protected
  272. programs, actually it rewrites the CBM80 sign and performs a
  273. normal reset)
  274. - PRINT SCREEN captures screen to a Windows bitmap file
  275. (filename C64S0xxx.BMP)
  276.  
  277. Table of replaced keys with their equivalents:
  278. - C=           Alt
  279. - Ins/Del      BackSpace
  280. - Clr/Home          Home
  281. -             Insert
  282. -              Delete
  283. - Run/Stop          Tab
  284. - Restore      F12
  285.  
  286. Default joystick emulation keys:
  287. - Primary set (1st emulated joystick):
  288.   Default primary set consists of arrow keys and right Alt
  289. key.
  290. - Secondary set (2nd emulated joystick):
  291.      W    up
  292.      S    down
  293.      U    left
  294.      I    right
  295.      O    fire
  296.                   _________________________
  297.                      5. EMULATOR DESKTOP
  298.                               
  299.  
  300. Press F9 in the emulator to enter the emulator desktop. The
  301. desktop consist of multiple screens that allow you to
  302. manipulate the tape and disk images used in the emulation,
  303. you can change several emulation parameters and you can even
  304. monitor the emulator CPU and memory (both C64 and 1541).
  305.  
  306. The top screen line represents the main menu. Press Alt key
  307. to enter main menu. Move around with arrow keys and select a
  308. topic by pressing enter. Or, you can select a main menu
  309. topic directly by pressing Alt plus the highlighted letter.
  310.  
  311. In all the the desktop screens the bottom screen line lists
  312. the actions available. Press the higlighted letter (without
  313. Alt!) to select the action. Enter will always select the
  314. left-most action.
  315.  
  316. The following is the list of desktop screens and functions
  317. available:
  318.  
  319.  
  320. 3.1. TAPE
  321.  
  322. The tape file screen lets you select the tape image file to
  323. be used in the emulation. Move around with arrow keys, press
  324. Enter to select the tape or change the directory. When you
  325. select a tape image file, you will enter the tape directory
  326. screen. Move around and press Enter to set the tape pointer
  327. position. You will get back to the emulation screen. When
  328. you enter the LOAD command or (Shift+Tab to LOAD and RUN),
  329. the emulator will read a file from the position set in the
  330. tape directory menu. When saving a file, the emulator will
  331. always add a file to the end of the tape image, regardless
  332. of the position set (it will not overwrite anything).
  333.  
  334.  
  335. The actions available in the tape file screen are:
  336. - Open
  337.   Opens the highlighted tape image file and enters tape
  338. directory screen (equivalent is Enter).
  339. - Files
  340.   If a tape image file is open, it jumps to the tape
  341. directory screen (equivalent is right arrow key).
  342. - Description
  343.   Lets you edit the highlighted tape's description.
  344. - New
  345.   Enter the file name, tape desctription and maximum
  346. directory size and the emulator will create an empty tape
  347. image file.
  348. - CD (Change Drive)
  349.   Press a drive letter (A-Z) to select a drive where the
  350. emulator will search for .T64 files.
  351.  
  352. The actions available in the tape directory screen:
  353. - Set
  354.   Sets tape pointer position and returns to the emulation
  355. screen (equivalent is Enter).
  356. - Tape
  357.   Jumps to the tape file screen (equivalent is left arrow
  358. key).
  359. - Name
  360.   Lets you edit the higlighted file's name.
  361. - Delete
  362.   Deletes the highlited file.
  363. - Import
  364.   Select the file from the file list and the emulator will
  365. import it to the selected tape image file. The files to be
  366. imported must be in the two formats:
  367. - standard 1541 .PRG format:
  368.   2 bytes - load address, other bytes - file data.
  369. - German .Pnn format (nn is in range 00-99)
  370.   8 bytes - "C64File" description, zero terminated
  371.   17 bytes - file name, zero terminated
  372.   1 byte - record size (defaults to 0 for .PRG files)
  373. If the file selected is not in one of the listed two
  374. formats, you may get unexpected results.
  375. - Export
  376.   Saves the highlighted file to a .PRG or .P00 file. All
  377. other extensions default to .PRG format (you can not export
  378. to a .T64 file).
  379. - Freeze
  380.   Saves full emulator state in a file. When you load such a
  381. file, it will start automatically from the point when it was
  382. saved. This function is not yet standardized. That means
  383. that the files you save with this function may not be
  384. loadable in the forthcoming versions of C64S.
  385.  
  386.  
  387. 3.2. DISK
  388.  
  389.   Actions in the disk file screen:
  390. - Select
  391.   Selects the disk image to be used in the emulator
  392. (equivalent to pressing Enter).
  393. - New
  394.   Enter file name, disk title and disk ID and the emulator
  395. will create an empy disk image file. To use it, select it in
  396. the disk file screen.
  397. - CD (Change Drive)
  398.   Press a drive letter (A-Z) to select a drive where the
  399. emulator will search for .D64 files.
  400.  
  401.  
  402. 3.3. OPTIONS
  403.  
  404.   There are two option screens available: the general
  405. options screen and the joystick options screen.
  406.   The option screen actions are:
  407. - Change
  408.   Changes the higlighted option. It either selects the
  409. highlighted radio button, changes the check box status or
  410. asks the user to edit the higlighted field. If the radio
  411. button list title is highlighted, Change selects the next
  412. radio button.
  413. - Joystick
  414.   Enters joystick option screen.
  415. - General
  416.   Enters general option screen.
  417. - Swap
  418.   Swaps joystick #1 settings with joystick #2 settings. This
  419. is to help you reassign joystick emulation settings.
  420. - Recalibrate
  421.   Runs joystick recalibration. Move joysticks as the
  422. emulator asks you to recalibrate correctly. If the emulator
  423. displays "Cannot recalibrate" message run CONFIG and check
  424. if analogue joysticks are enabled (the option must be set to
  425. Autodetect). If joystick scanning mode is set to
  426. Compensating, try setting it to Compatible. Save
  427. configuration, restart the emulator and run joystick
  428. recalibration again.
  429.  
  430.  
  431. Options overview:
  432.  
  433. - Screen refresh
  434.   C64 updates on-screen picture 50 frames per second in PAL
  435. or 60 frames per second in NTSC version. That means the
  436. emulator must generate A LOT of video data and transfer it
  437. to the VGA card. As this is the most time consuming part of
  438. the emulaton, the emulator allows you to control the screen
  439. refresh rate thus making possible to achieve original
  440. emulation speed also on slower PC computers. However, if the
  441. screen refresh rate is to low, it might affect the animation
  442. smoothnes, or, in some cases, it will disturb the functions
  443. that depend on accurate screen refresh rates, per example
  444. some games use hardware sprite collision detection, which
  445. occurs only when the screen is updated. Keep this in mind if
  446. you notice such problems (bullets flying through objects or
  447. similar).
  448. Screen refresh settings:
  449. - Synchronized
  450.   Automatically synchronizes the screen refresh rate with
  451. the speed of your computer. It will autoselect the screen
  452. refresh rate between original refresh rate and the custom
  453. frame rate. This way you can limit the lowest frame rate. It
  454. is advised that you input the custom frame rate between 1/3
  455. and 1/10 and set the screen refresh to synchronized.
  456. - Original
  457.   Selects original screen refresh rate (1/1).
  458. - Custom
  459.   Selects custom screen refresh rate. 1/X means 1 out of X
  460. frames is displayed. 1/1 means each frame is displayed, 1/10
  461. means only every 10th frame is displayed thus saving 90%
  462. time for faster CPU emulation.
  463.  
  464. - CPU speed
  465.   C64's 6510 CPU runs at a fixed clock speed of around 1
  466. MHz. The emulator lets you control the CPU speed, which is
  467. useful in some applications. However, to achieve higher CPU
  468. speeds you need a fast PC (486/66 will run at 250-450%
  469. speed). The percentage displayed in the parantheses in the
  470. general option screen is the current estimated speed.
  471.   CPU speed settings:
  472. - Original
  473.   Tries to near original (100%) speed.
  474. - Maximum
  475.   Forces maximum achievable speed.
  476. - Custom
  477.   Use this setting to force a desired speed.
  478. IMPORTANT: To achieve higher CPU speeds, you must set the
  479. screen refresh to synchronized or to custom at a frame rate
  480. in range of 1/10.
  481.  
  482. - VIC options
  483.   The emulator lets you control sprite emulation in order to
  484. gain faster emulation or to cheat in the games that rely on
  485. the VIC chip when detecting object collisions. Set all
  486. options to back to "on" for original emulation.
  487.  
  488. - Machine type
  489.   There were two major types of C64 machines manufactured
  490. for two different TV standards: PAL (used in Europe) and
  491. NTSC (used in USA). Though most of the programs will run ok
  492. independent of this setting, the emulator lets you switch
  493. between the machine types to gain better compatibility. Try
  494. changing this setting when you notice on-screen garbage or
  495. music playing either too fast or too slow.
  496.  
  497. - Joystick options
  498.   You can control the emulation of two C64 joystick ports.
  499. You can use keyboard emulation or analogue joystick
  500. emulation. To use analogue joysticks, they must be enabled
  501. in the hardware configuration (set to Autodetect) and
  502. successfully recalibrated.
  503.   The emulator allows you to define two joystick key sets.
  504. Primary key set is used, when only one jostick is emulated.
  505. Both key sets are used, when both joysticks are emulated by
  506. keyboard. In this case primary key set emulates joystick
  507. port #2, and secondary key set emulates joystick port #1.
  508.   IMPORTANT: When the keyboard joystick emulation is
  509. enabled, the keys used for joystick emulation don't respond
  510. in the original way anymore. Per example: if key 'A' is used
  511. to emulate joystick direction, you won't be able to type
  512. character 'A'. When such conflicts occur, either press F10
  513. and disable keyboard joystick emulation, or change the keys
  514. used for joystick emulation so they will not conflict with
  515. the keys that need to operate originally. Some keyboards
  516. also behave strange when multiple keys are pressed at the
  517. same time. This is the most annoying when emulating
  518. joystick, per example you might notice that you can't move
  519. up-left and shot at the same time. If you notice such or
  520. similar behaviour, try changing the joystick emulation keys.
  521.  
  522.  
  523. 3.4. MONITOR
  524.  
  525.   Built-in monitor lets you watch the programs when running.
  526. In the monitor screen you see:
  527. - 6510 registers (top right)
  528. - 6510 code (top left)
  529. - memory dump (bottom)
  530.   Move around with arrow keys, move faster with Page Up,
  531. Page Down, Home and End keys.
  532.   Data dumped at I/O addresses $D000-$DFFF is the latest
  533. data written or read from the I/O address, it is not always
  534. what CPU will read next.
  535.  
  536. The actions available are:
  537. - Mode
  538.   Switches focus between code and dump.
  539. - Bank
  540.   Selects memory bank. 0-7 selects a C64 bank (equal to low
  541. 3 bits of memory location $01), 8 selects emulated 1541
  542. memory.
  543. - Goto
  544.   Prompts for a new address and jumps to it.
  545. - Where
  546.   Moves code display to the instruction where emulation was
  547. interrupted.
  548. - Trace (F7)
  549.   Executes one instruction and moves code display.
  550. - Step (F8)
  551.   Steps over the instruction skipping code display of
  552. subroutine branches. In case of a subroutine call, the
  553. subroutine is executed in debug mode. You can interrupt
  554. subroutine execution by pressing Esc.
  555. - Here (F4)
  556.   Sets a breakpoint at the position of code display and runs
  557. C64 emulation in debug mode until CPU reaches the
  558. instruction at the breakpoint or Esc key is pressed.
  559. IMPORTANT: Running C64 emulation in debug mode will cause 30-
  560. 50% slow down. Exit debug mode by pressing Esc, once you
  561. have finished monitoring the programs.
  562.  
  563.  
  564. 3.5. HELP
  565.  
  566.   Online help provides basic information the user needs when
  567. running C64S. It is meant more like online reference and not
  568. a copy of the manual.
  569.  
  570.   Help usage:
  571. - Use arrow keys to move around topics.
  572. - Press Enter or R to jump to the highlighted topic.
  573. - Press I to get help index.
  574. - Use Page Up and Page down keys to list help screens.
  575.  
  576.                          ___________
  577.                            6. TIPS
  578.                               
  579.  
  580. Q: I selected a disk image file in the disk file screen. How
  581. can I use it ?
  582. A: Using 1541 drive operates in the original way. The CBM
  583. DOS commands (except format) work, too. Type LOAD"$",8,1 to
  584. load directory, LIST to see it, LOAD"prg name",8 to load a
  585. program (you may use wildcards) and RUN to start it. To load
  586. a file to its original address, you need to type LOAD"prg
  587. name",8,1. Run a machine code program writing SYS xxxx,
  588. where xxxx is the program entry address (decimal).
  589.  
  590. Q: My display does not show the whole C64 screen !
  591. A: Run CONFIG and set display mode to Compatible. This is a
  592. must-to-do if you use a laptop computer with an LCD display.
  593.  
  594. Q: When I press certain keys the emulator seems to dump
  595. random characters, arrows and noumbers !
  596. A: You need to enter joystick option screen (press F10) and
  597. disable joystick emulation. C64 scans keyboard and joysticks
  598. at the same I/O addresses and this is a well-known side
  599. effect.
  600.  
  601. Q: Keyboard joystick emulation does not work O.K. !
  602. A: Try changing joystick emulation keys (press F10). Note
  603. that some keyboards behave strange when multiple keys are
  604. pressed at the same time. If you notice that particular keys
  605. work O.K. when pressed one by one, but malfunction when
  606. pressed together, you must change the joystick emulation
  607. keys (find a combination that will work O.K. with your
  608. keyboard).
  609.  
  610. Q: I have difficulties using analogue joystick. What can I
  611. do ?
  612. A: You must recalibrate it in the joystick option screen
  613. (press F10 and `R'). If the emulator displays the "Cannot
  614. recalibrate" message, exit the emulator, run CONFIG and
  615. check that analogue joystick option is set to Autodetect. If
  616. joystick scanning mode is set to Compensating, try setting
  617. it to Compatible. When you change joystick scanning mode,
  618. you also need to recalibrate joysticks in the emulator!
  619. Also, if you are using a single analogue joystick, try
  620. assigning analogue joystick emulation to one port only.
  621.  
  622. Q: The emulator doesn't autodetect my PAS soundcard !
  623. A: Check that MVSOUND.SYS device driver is loaded in your
  624. CONFIG.SYS file. If you installed PAS software properly the
  625. following line should be placed in CONFIG.SYS:
  626.      device=c:\spectrum\mvsound.sys [parameters]
  627. Run PAS installation software to install the driver or read
  628. your PAS User's Guide to find out how to modify CONFIG.SYS
  629. and configure MVSOUND.SYS.
  630.  
  631. Q: Can I use PC printer with emulated C64 programs ?
  632. A: Yes, but only for pure text output. Printing graphics or
  633. changing text attributes will not work, because CBM printers
  634. and PC printers use different sets of control codes. To use
  635. PC printer, you must run CONFIG and select the LPT port
  636. where your printer is connected (default is LPT1 which will
  637. work OK, if you only have one LPT port).
  638.  
  639. Q: Can I use 1541 disk drive or CBM printer with emulated
  640. C64 programs ?
  641. A: Yes. Any CBM devices connected to LPT port can be used
  642. with emulated C64 programs. Run CONFIG and check that use of
  643. external devices is enabled or set to autodetect. If you get
  644. into problems, please refer to the configuration section of
  645. the manual.
  646.  
  647. Q: May I run C64S from Windows, Windows NT or OS/2 ?
  648. A: Yes, but C64S runs much slower in such environments. This
  649. slow down especially affects sound output. If you notice any
  650. troubles you are advised to run CONFIG, disable sound output
  651. (set to No sound) and set joystick scanning mode to
  652. compatible.  Run C64S from plain DOS to gain best
  653. performance.
  654.  
  655. Q: DISK IO banner keeps blinking in bottom left corner !
  656. A: DISK IO banner is blinking when a user program is running
  657. in emulated 1541 RAM, usually it's fast loader or protection
  658. code. If the banner keeps blinking forever it probably means
  659. the program got stuck. Press Esc to terminate DISK IO mode.
  660.  
  661. Q: How can I achieve the highest possible emulation speed ?
  662. A: Enter general options screen. Set the CPU speed to
  663. maximum. Set screen refresh to custom and enter custom frame
  664. rate 1/99. If the application does not use sprites set show
  665. sprites to off. Press ESC and watch your application go mad.
  666. To gain even more speed run CONFIG and disable sound
  667. emulation and analogue joysticks. Also, if possible, disable
  668. memory managers like QEMM, EMM and 386MAX. If you are using
  669. Windows or OS/2, try running C64S from plain DOS.
  670.  
  671. Q: I prefer 320*200 graphics resolution used in the demo
  672. version !
  673. A: Run CONFIG and set display mode to Compatible.
  674.  
  675. Q: What is the best soundcard to be used for the sound
  676. emulation ?
  677. A: Gravis UltraSound. It takes the least CPU time and
  678. produces the best output. The new GUS driver uses advanced
  679. wavetable synthesis to generate crystal clear 44 kHz 16 bit
  680. sound output.
  681.  
  682. Q: What to do to listen to C64 tunes on a slower PC ?
  683. A: Enter general options screen. First, set CPU speed to
  684. original. Set screen refresh to synchronized and enter
  685. custom frame rate 1/10. Now press ESC. If the sound seems to
  686. be disturbed, hold down F11. If this does not help your
  687. computer is unfortunately too slow.
  688.                     _____________________
  689.                       7. COMPATIBILITY
  690.                               
  691.  
  692. The following is the compatibility list.
  693. + means implemented and compatible (++ is new from v0.9, +++
  694. is new from v1.0)
  695. - means not implemented or not compatible
  696. * means planned in the future
  697.  
  698.  
  699.   CPU
  700.  
  701. ++ full 6510 instruction set
  702. +++ $01 memory banking and I/O
  703. +++ $00 CPU I/O direction control
  704. + flags (not 100% compatible in decimal operations)
  705. ++ cycle counts
  706. * boundary crossing I/O tricks
  707.  
  708.  
  709.   VIC
  710.  
  711. + all graphic modes
  712. ++ border
  713. ++ open border (upper and lower)
  714. + sprites
  715. ++ interrupts: raster, sprite collisions (no light pen IRQ)
  716. + multiplied sprites
  717. + hardware scroll
  718. + shrunk screen
  719. ++ cycle exact screen changes
  720. ++ DMA
  721. ++ screen snapshots
  722. * forced DMA
  723. * full open border (left and right)
  724. * more $D011 and $D016 tricks
  725.  
  726.  
  727.   SID
  728.  
  729. + supports GUS, SB, DAC and PC speaker
  730. + all 3 channels
  731. ++ 8 bit sampled original waveforms
  732. + ADSR envelope control
  733. + master volume control
  734. + pulse width modulation
  735. ++ $D418 amplitude output
  736. +++ 8000 Hz synthesis on PC speaker (6 bit), SB (8 bit) and
  737. PAS (8/16 bit)
  738. +++ 44100 Hz synthesis on GUS (16 bit wavetable)
  739. - no channel to channel effects
  740. * filtering (at least for digital sound effects)
  741. * SB AWE 32 native mode driver
  742.  
  743.  
  744.   CIA 1
  745.  
  746. + keyboard emulation
  747. + joystick emulation
  748. + timer A
  749. ++ timer B
  750. + IRQ control
  751. + IRQ
  752. ++ time of day (C64 synchronized)
  753. +++ time of day alarm
  754. * rebindable keyboard
  755. * serial port
  756.  
  757.  
  758.   CIA 2
  759.  
  760. + VIC bank select
  761. ++ serial bus communication
  762. ++ timer A
  763. ++ timer B
  764. +++ NMI control
  765. +++ NMI
  766. ++ time of day (C64 synchronized)
  767. +++ time of day alarm
  768.  
  769.  
  770.   1541
  771.  
  772. + ROM level emulation (16K RAM & I/O + 16K ROM)
  773. + supports CBM DOS 2.6 commands except format
  774. + fast (ROM trapped) C64 to 1541 connection
  775. + image file operation
  776. ++ 1541 disk transfer utility
  777. ++ emulates direct serial bus communication
  778. +++ supports 35 and 40 track .D64 image files
  779. +++ suppors sector error information
  780. +++ real 1541 connection (LPT port)
  781. * improved (GCR coded) image file format
  782.  
  783.  
  784.   TAPE
  785.  
  786. + ROM trapped LOAD and SAVE routines
  787. + tape image files with directory
  788. + ultra fast loading
  789. ++ TapeIO Turbo Tape loader for PC tape connector
  790. ++ MakeTape utility
  791. * tape digitizing
  792.  
  793.  
  794.   PRINTER
  795.  
  796. +++ supports PC printers (for pure text output only)
  797. +++ supports CBM printers (connected to LPT port)
  798.  
  799.  
  800.   EMU-DETECTION
  801.  
  802. +++ $DFFF read flip flop ($AA,$55)
  803. +++ $DFFE manufacturer code (`S'=C64S)
  804. +++ $DFFC version number ($0104=1.0D)
  805. +++ $DFA0 message (tiltle, version, $0D, copyright, $00)
  806.  
  807.                     _____________________
  808.                       8. FILE TRANSFERS
  809.                               
  810.  
  811. The emulator uses two types of image files to store the
  812. information in the format C64 programs can handle. There are
  813. two types of image files:
  814.  
  815. - .T64 files represent tape image files. Though the C64 tape
  816. drives were slow and unreliable this type of storage on PC
  817. systems has certain advantages over other methods. The most
  818. important is that a tape image file contains a tape
  819. directory with the information about all the files stored in
  820. the image file. This way the user can easily see the
  821. contents and select the file he or she wishes to access.
  822. Instead of slow C64 loader fast PC routines take care of
  823. loading and saving thus minimizing the time necessary for
  824. such operations. The last important feature is that multiple
  825. C64 files can be stored in one tape image file. This helps
  826. the user organize big collections of C64 software. The
  827. emulator provides the tools for manipulating .T64 files: the
  828. tools built in the emulator desktop, MAKETAPE utility for
  829. creating tape image files and importing files, FIXTAPE
  830. utility to fix CONV64 created files and TAPEIO utility,
  831. which is a Turbo Tape loader for PC.
  832.  
  833. - .D64 files represent disk image files. These files are
  834. actually a faithful reproduction of the 1541 formatted
  835. floppy disk contents. They contain the data of all disk
  836. sectors in the order they appear on a real 1541 disk. The
  837. emulator emulates 1541 floppy drive so that emulated C64
  838. programs can read and write emulated disks just like real
  839. disks. Of course, you can store hundreds of floppy disks to
  840. image files and use them simply by selecting them in the
  841. disk file selection screen. The emulator also includes a
  842. COM1541 utility that will let you transfer data from 1541
  843. disks to image files.
  844.  
  845.  
  846.  
  847. 8.1. Using COM1541 utility
  848.  
  849. COM1541 will let you transfer data from 1541 (or compatible)
  850. floppy drive to disk image files that can be used with the
  851. emulator. If you keep a big collection of 1541 disks, you
  852. can now easily transfer them to your PC system.
  853.  
  854. To run COM1541 successfully you need to do the following:
  855.      If  you are running COM1541 for the first time, run
  856.  CONFIG and set the 1541 port to your LPT port's I/O address.
  857.  If you do not know the address you will need to experiment
  858.  to find the right one.
  859.      Connect PC's LPT port and 1541's serial port with the
  860.  cable (please refer to file LPT1541.DOC for details about
  861.  the connection).
  862.  
  863. Then you can run COM1541 by typing on the command line:
  864.  
  865.      COM1541
  866.  
  867. If you are not running COM1541 from the emulator's home
  868. directory, you need to use a switch to specify LPT port I/O
  869. address. Use 1 for 278, 2 for 378 and 3 for 3BC. Example:
  870.  
  871.      COM1541 2
  872.  
  873. COM1541 will try to connect using LPT port at I/O address
  874. 378.
  875.  
  876. Upon successful program execution the 1541 drive led should
  877. blink and the drive motor start running for a while. A short
  878. menu will display on the screen:
  879.  
  880.      [D]  Display disk directory
  881.      [I]  Import disk (BAM allocated sectors only)
  882.      [F]  Import full disk (all sectors)
  883.      [X]  Exit
  884.  
  885. Insert a disk to 1541 drive and press `D' to see the
  886. directory. If  the directory seems O.K., everything is ready
  887. for disk transfer. It is up to you to select a method of
  888. disk transfer. Usually selecting `I' will transfer the disks
  889. the fastest and correctly. This method will transfer only
  890. the sectors marked as used in the disk Block Allocation Map,
  891. but as C64 programmers managed to do lots of irregular
  892. tricks with the 1541 floppies not all applications mark the
  893. sectors as used. Thus you can press `F' to select full disk
  894. transfer.
  895.  
  896. After selecting a transfer method, COM1541 will prompt for a
  897. file name. If a file with the same name already exists it
  898. will be rewritten! You do not need to add an extension,
  899. because COM1541 will add .D64 by default. If no file name is
  900. given, the default file name is IMPORT.D64. If this is the
  901. case, rename the file after transferring to avoid possible
  902. later difficulties.
  903.  
  904. When COM1541 finishes transferring the disk, exit with `X'.
  905. The disk image file is now ready to use with the emulator.
  906. Run C64S and check it.
  907.  
  908.  
  909.  
  910. 8.2. Using TAPEIO utility
  911.  
  912. TAPEIO utility is actually a TURBO TAPE compatible loader
  913. for PC. The files loaded without errors are stored to a .T64
  914. file so they can be used immediately with the emulator. To
  915. use it you need to connect a C64 tape recorder to PC's LPT
  916. port (please refer to file LPTTAPE.DOC for details about
  917. connection). A VGA compatible display is necessary for
  918. graphic display of incoming tape data.
  919.  
  920. The syntax is:
  921.  
  922.      TAPEIO [tapename[.T64]] [port]
  923.  
  924. If you are running TAPEIO from the emulator's directory it
  925. will read the tape port selected with the CONFIG utility
  926. (default setting is 378). If you want to select a different
  927. port, you must specify it on the command line. Use 1 for
  928. 278, 2 for 378 and 3 for 3BC. Run TAPEIO with no parameters
  929. to see the list of LPT port noumbers. TAPEIO will not load
  930. anything if the port is not set correctly.
  931.  
  932. If a .T64 file with the given name does not exist, the
  933. utility creates an empty tape image file.
  934.  
  935. When you run TAPEIO, you are first presented with a record
  936. joustage screen. The border flashes and there is a red
  937. (dark) vertical line in the middle of the screen. Now press
  938. PLAY on the tape recorder. What you should see on the screen
  939. is the data coming from the tape recorder displayed as
  940. yellow graphics scrolling up. If the communication is O.K.,
  941. the yellow graphics should form two jagged stripes. Now you
  942. can use Left and Right arrow keys to move the red line in-
  943. between the stripes. Use Up and Down arrow keys to change
  944. the display scale if necessary. This procedure is required
  945. to accommodate the loader to the speed of your computer. You
  946. can use a screw driver to adjust the tape head position in
  947. order to improve signal quality.
  948.  
  949. When the red line is located as described above press Enter
  950. to start the loader. The loader will start searching for a
  951. file header. When a header is found, all the data is dumped
  952. onto the screen. When a file is being loaded, the border
  953. flashes in blue colours and the increasing percentage is
  954. displayed on the screen. This percentage tells the amount of
  955. the file already loaded. If the file is loaded with no
  956. errors it is added to the tape image file given on the
  957. command line. TAPEIO will continue loading files until the
  958. tape image directory is full or it is interrupted by
  959. pressing ESC.
  960.  
  961. Press ESC at any time to exit TAPEIO and return to DOS.
  962.  
  963.  
  964.  
  965. 8.3. Using MAKETAPE utility
  966.  
  967. If you transfer C64 files using the shareware X1541 utility
  968. or if you download them from a FTP site or a BBS, you will
  969. probably get the files in the raw C64 format (with usual
  970. extension .PRG). The files look like: 2 bytes - start
  971. address, other bytes - code. MAKETAPE allows you to create
  972. empty tape image files and import raw C64 files. In addition
  973. to that MAKETAPE also imports .P00 files.
  974.  
  975. The syntax is:
  976.  
  977.      MAKETAPE [tapename] [file1] [file2] ...
  978.  
  979. MAKETAPE first checks if tapename.T64 already exists. In
  980. this case it opens the file, otherwise it creates an empty
  981. .T64 file with the given name. If the tapename is succeeded
  982. by filenames file1, file2..., MAKETAPE adds each file listed
  983. to the end of the tape file.
  984.  
  985. Example:
  986. You got a file called JOKE.PRG, which you know is a C64
  987. file. You would like to create a new tape image file named
  988. "JOKES.T64" and import your file, so you can use it in the
  989. emulator. The solution is as simple as that:
  990.  
  991.      MAKETAPE jokes joke.prg
  992.  
  993. Run the emulator, enter tape file screen and you will see a
  994. new entry "JOKES" listed among other tape image files. You
  995. can edit the description. Open the tape and "JOKE.PRG" will
  996. be listed in the tape directory.
  997.  
  998.  
  999. 8.4. Using FIXTAPE utility
  1000.  
  1001. The first demo version of C64S was released without the
  1002. MAKETAPE utility. As a result a quick hack utility CONV64
  1003. appeared. In best efforts to translate C64 software into the
  1004. .T64 format the respective author simply used the
  1005. Cybernoid's header not knowing that a lot of important
  1006. information is stored in the .T64 file. Among other things
  1007. the program end address was not adjusted according to the
  1008. imported file's size. As a side effect many crunched
  1009. programs refused to work, longer programs did not fully load
  1010. and BASIC programs complained with an OUT OF MEMORY message.
  1011. The emulator now checks if it loads from a CONV64 file and
  1012. tries to fix the mess. LOAD ERROR message is generated to
  1013. inform the user something is wrong. If you notice such
  1014. behaviour run FIXTAPE to fix the tape image file. You are
  1015. encouraged to make a copy of the file before trying to fix
  1016. it for safety reasons.
  1017.  
  1018. The syntax of FIXTAPE is:
  1019.  
  1020.      FIXTAPE [tapename1] [tapename2] ...
  1021.  
  1022. FIXTAPE will check all the listed files (tapename.T64). It
  1023. will display Fixed upon successful correction or O.K. if the
  1024. file needs no fixing. Run this utility with one file tape
  1025. images only !
  1026.                        _______________
  1027.                          9. CONTACTS
  1028.                               
  1029.  
  1030. North American representatives:
  1031.  
  1032. C64S 1.0 is now available in USA, Canada, Mexico, Australia
  1033. and New Zealand. Contact:
  1034.  
  1035.         USA orders $69.95us.
  1036.         Canada and Mexico orders $69.95us + $5.00us SH.
  1037.         Australia and New Zealand $69.95us + $10.00us SH.
  1038.  
  1039.         For Credit Card (VISA or MasterCard) orders
  1040.         Phone, Fax, Mail or Email to:
  1041.  
  1042.         Phone:  206.828.9001
  1043.         Fax:    206.828.9011
  1044.         Email:  lab@seattle.wa.com
  1045.         CompuServe:     71202,560
  1046.         FTP:    as.seattlelab.com (204.29.31.1)
  1047.  
  1048.         For Check or Money Order orders send to:
  1049.  
  1050.         Seattle Lab
  1051.         214 First St.
  1052.         Kirkland, WA 98033
  1053.         U.S.A.
  1054.  
  1055.  
  1056. European representatives:
  1057.  
  1058. Vertrieb, Support und Registrierung fr Deutschland,
  1059. sterreich und Schweiz:
  1060.  
  1061.        phs EDV Beratung
  1062.        Michael Penzkofer
  1063.        Davenstedter Str. 10
  1064.        D-30449 Hannover
  1065.  
  1066.        Tel.: 49-511-444 193
  1067.        Fax : 49-511-458 1524
  1068.        BBS : 49-511-455 011  (300..14400 Bd)
  1069.  
  1070.  
  1071. Prodaja in podpora v Sloveniji:
  1072.  
  1073. Prodajo in podporo v Sloveniji izvaja Miha Peternel osebno.
  1074. Cena emulatorja je 2500 SIT, placa se po povzetju. V paket
  1075. ni vkljucen vmesnik za prikljucitev Commodorjevih zunanjih
  1076. enot, vendar dodam navodilo za izdelavo le-tega. Za
  1077. informacije in narocila uporabite enega od spodaj navedenih
  1078. naslovov.
  1079.  
  1080.  
  1081. Author:
  1082.  
  1083. In case you would like to contact me you can choose among
  1084. the addresses listed below. I prefer E-mail, because it's
  1085. the cheapest, the fastest and I will always get the messages
  1086. if addressed to both E-mail addresses. I am looking forward
  1087. to hearing ANY ideas on how to improve the emulator
  1088. (software and documentation). Also, feel free to ask any
  1089. questions.
  1090.  
  1091. E-mail: (preferred)
  1092.   miha@rsc3.hermes.si
  1093.   miha.peternel@abm.gn.apc.org
  1094. E-mail messages to both addresses if possible.
  1095.  
  1096. Phone:
  1097.   +386-64-311-959 (fax/modem on demand)
  1098.   8-11 PM, Central European Time
  1099.  
  1100. Snail mail:
  1101.   Miha Peternel (for C64S)
  1102.   Pot v Bitnje 66
  1103.   64000 Kranj
  1104.   Slovenia
  1105.  
  1106. Special greets go to: Marko Mkel, Urog Platige, Udo van
  1107. den Heuvel, Jeff Gilmour, Gert Ensing, Ulrik/Surprise!
  1108. Productions and Gore/Future Crew.
  1109.                        ______________
  1110.                           CONTENTS
  1111.                               
  1112. 1. Introduction
  1113.  Basic C64S information.
  1114. 2. Configuration
  1115.  Hardware configuration guide.
  1116. 3. First Steps
  1117.  Step by step introduction to C64S system.
  1118. 4. In Action
  1119.  The differences between real and emulated C64.
  1120. 5. Emulator Desktop
  1121.  Detailed description of desktop and built-in tools.
  1122. 6. Tips
  1123.  Trouble shooting and tailoring emulation.
  1124. 7. Compatibility
  1125.  Detailed compatibility list.
  1126. 8. File Transfers
  1127.  A guide on file transfers with C64S utilities.
  1128. 9. Contacts
  1129.  Getting in touch with representatives and the author.
  1130.  
  1131.